package com.ruoyi.project.cms.knowledgemanagement.mapper;

import com.ruoyi.project.cms.knowledgemanagement.domain.KnowledgeBenchmarking;

import java.util.List;

public interface KnowledgeBenchmarkingMapper {

        //通过ID查询
        KnowledgeBenchmarking selectOneById(Long project_id);

        /*
        * 按照名字模糊查询 没有名字查询全部
        * */
        List<KnowledgeBenchmarking> selectByName(KnowledgeBenchmarking knowledgeBenchmarking);
        /*
        * 按照id删除一个项目
        * */
        int deleteOneById(Long project_id);
        /*
        * 批量删除项目
        * */
        int deleteProjectByIds(Long[] ids);

        /*
         * 修改状态
         * */
        int changeStatus(KnowledgeBenchmarking knowledgeBenchmarking);

        /*
        * 添加项目
        * */
        int insert(KnowledgeBenchmarking knowledgeBenchmarking);

        /*
        * 修改项目
        * */
        int updateOne(KnowledgeBenchmarking knowledgeBenchmarking);

}
